import Vue from 'vue'
import VueRouter from 'vue-router'
import HomeView from '../views/HomeView.vue'

Vue.use(VueRouter)

const routes = [
  {
    path: '/',
    name: 'home',
    component: HomeView
  },
  {
    path: '/Home',
    name: 'admin',
    component: () => import('@/views/Home/HomeIndex.vue'),
    children: [
      {
        path: 'menuIndex',
        name: 'menuIndex',
        component: () => import('@/views/systemMenu/menuIndex.vue')
      },
      {
        path: 'user',
        name: 'userIndex',
        component: () => import('@/views/User/userIndex.vue')
      },
    ]
  },
  {
    path: '/workflowtemplate',
    name: 'workflowtemplate',
    component: () => import('@/views/WorkFlowTemplate/workFlowTemplateIndex.vue')
  },
  {
    path: '/dic',
    name: 'dic',
    component: () => import('@/views/Dictionary/dicIndex.vue')
  },
  {
    path: '/wf',
    name: 'wf',
    component: () => import('@/views/workFlow/workFlowIndex.vue')
  },
  // {
  //   path: '/fd',
  //   name: 'fd',
  //   component: () => import('@/components/workflowTemplate/formDesign.vue')
  // },
  // {
  //   path: '/fld',
  //   name: 'fld',
  //   component: () => import('@/components/workflowTemplate/flowDesign.vue')
  // }

]

const router = new VueRouter({
  routes
})

export default router
